package ch06.home;

class Exercise6_06 {
	static double getDistance(int x, int y, int x1, int y1) {
		// <1
		return Math.sqrt(Math.pow(x - x1, 2) + Math.pow(y - y1, 2));
		// 1>
	}

	public static void main(String args[]) {
		System.out.println(getDistance(1, 1, 2, 2));
	}
}
/*
 * 1.4142135623730951
 */